﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBArticle = VB.Entries.DataModel.Article;

namespace VB.BusinessLogic.Models
{
    public class Article
    {
        public Int32 Id;
        public String Title;
        public String Alias;
        public String Text;
        public DateTime? DatePosted;
        public Boolean IsDraft;
        public DateTime DateCreated;

        public Article(DBArticle article)
        {
            this.Id = article.Id;
            this.Title = article.Title;
            this.Alias = article.Alias;
            this.Text = article.Text;
            this.DatePosted = article.DatePosted;
            this.IsDraft = article.IsDraft;
            this.DateCreated = article.DateCreated;
        }
    }
}
